#include"ProcessPool.hpp"




int main(int argc,char*argv[])
{
    if(argc!=2)
    {
        std::cout<<"please input ProcessPool processnum"<<std::endl;
        return  UsageError;
    }
    int num = std::stoi(argv[1]);

    ProcessPool* pp = new ProcessPool(num,Worker);

    pp->InitProcessPool();

    pp->DispatcherTask();

    pp->Distory();

    return OK;
}
